﻿@{
    ViewBag.Title = "neihan";
    Layout = "~/Views/Shared/_LayoutMetro.cshtml";
    
    List<Onlyle.Model.E_GaoXiao_Article> ArticleList = Model;
    string picPath = "http://uimg.fotoat.com/pic/gaoxiao/" + ViewBag.Type + "/{0}/{1}";
}
<div class="page secondary fixed-header">
    <div class="page-header ">
        <div class="page-header-content">
            <div class="user-login">
                <a href="#">
                    <div class="name">
                        <span class="first-name">Sergey</span>
                        <span class="last-name">Pimenov</span>
                    </div>
                    <div class="avatar">
                        <img src="http://www.bootcss.com/p/metro-ui-css/images/myface.jpg">
                    </div>
                </a>
            </div>

            <h1>Start</h1>
        </div>
    </div>

    <div class="page-region">
            <div class="page-region-content">
            </div>
                <div class="grid">
                    <div class="row">
                        <div class="span11 offset4">
                            @for (int i = 0; i < ArticleList.Count; i++)
                            {
                                string imgPath = "";
                                imgPath = @ArticleList[i].GaoXiao_ImgAddress == "blank" ? "http://uimg.fotoat.com/pic/blank.gif" : string.Format(picPath, Convert.ToDateTime(ArticleList[i].GaoXiao_ContentFromDate).ToString("yyyy-MM-dd"), ArticleList[i].GaoXiao_ImgAddress);
                                <div class="tile triple_2 triple-vertical_2 bg-color-write">
                                    <div class="tile-content">
                                         <h2 style="margin-bottom:10px">@Industry.Framework.Common.Helper.StringHelper.ClipString(ArticleList[i].GaoXiao_ContentTitle,23)</h2>
                                         <img class="tile triple_2 img triple-vertical_2 img" src="@imgPath"  />
                                    </div>
                                    <div class="brand">
                                            <span class="name" style="margin-bottom:2px;">来源：@ArticleList[i].GaoXiao_ContentFrom</span>
                                    </div>
                                </div>
                            }
                        </div>
                     </div>
             </div>    
          
    </div>
</div>